<script>
	// @Component
	export default {
		onLaunch: function() {
			if(!uni.getStorageSync('token')){
				uni.showToast({
					title: '你还未登录，请先登录', //弹出的文字
					icon: 'error', //显示成功图标
					duration: 2000 //弹出的事件
				})
				const res = setTimeout(()=>{
					uni.reLaunch({
						url: '../login/login'
					});
					clearTimeout(res)
				},2000)
				// clearInterval(res)
			}
		},
		onShow: function() {
		},
		onHide: function() {
		},
		onHide: function() {}
	}
</script>

<style>
@font-face {
  font-family: "iconfont"; /* Project id 3050124 */
  src: url('//at.alicdn.com/t/font_3050124_lahkbuv83vl.woff2?t=1647238718158') format('woff2'),
       url('//at.alicdn.com/t/font_3050124_lahkbuv83vl.woff?t=1647238718158') format('woff'),
       url('//at.alicdn.com/t/font_3050124_lahkbuv83vl.ttf?t=1647238718158') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-shijian:before {
  content: "\e64d";
}

.icon-weizhi:before {
  content: "\e61b";
}

.icon-24gf-telephone2:before {
  content: "\e96d";
}

.icon-xiaoyuhao:before {
  content: "\e628";
}

.icon-jiahao:before {
  content: "\e726";
}

.icon-yuyin:before {
  content: "\e618";
}

.icon-biaoqing:before {
  content: "\e612";
}

.icon-gengduo:before {
  content: "\e601";
}

.icon-24gl-phoneLoudspeaker:before {
  content: "\e94f";
}

.icon-sanjiao1:before {
  content: "\e600";
}

.icon-guanbishixin:before {
  content: "\e8dc";
}

.icon-xiangji:before {
  content: "\e8bc";
}

.icon-shaixuan:before {
  content: "\e74a";
}

.icon-dayuhao:before {
  content: "\e625";
}

.icon-wuyebaoxiu:before {
  content: "\e6af";
}

.icon-yijianfankui:before {
  content: "\e685";
}

.icon-xiaoxi:before {
  content: "\e86f";
}

.icon-shezhi1:before {
  content: "\e61c";
}

.icon-shezhi:before {
  content: "\e8b8";
}

.icon-sousuo:before {
  content: "\e651";
}

.icon-ditu_dingwei_o:before {
  content: "\ebbb";
}
</style>
